﻿using lingopen.Application;
using lingopen.Application.Jabil;
using lingopen.Entity.CNC;
using Microsoft.AspNetCore.Mvc;

namespace lingopen.Jabil.Server.Areas.BLE.Controllers
{
    /// <summary>
    /// 产品追溯
    /// </summary>
    [Area(AreaNames.TTS)]
    [LoginAuthorize]
    public class ProdController : WebController
    {
        public ActionResult Index()
        {
            return View();
        }
        /// <summary>
        /// 产品追溯查询
        /// </summary> 
        /// <param name="keyword">关键字</param> 
        /// <returns></returns>
        [HttpGet]
        public ActionResult GetProds(string keyword)
        {
            var data = this.CreateService<IEPCAppService>().Query_TTS_Prods( keyword );
            return this.UISuccessData(data);
        } 
    }
}
